package com.xzp.gkrpc.example;

import com.xzp.gkrpc.client.RpcClient;

import java.util.ArrayList;

public class Client {
    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService proxy = client.getProxy(CalcService.class);
        int r1 = proxy.add(1, 2);
        int r2 = proxy.del(1, 2);
        String ret = proxy.sayWhat("abc",  "def");
        System.out.println(r1 + "  " + r2);
        System.out.println(ret);
    }
}
